package com.rear.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.rear.dao.MessageRecordDao;
import com.rear.entity.MessageRecordEntity;
import com.rear.service.MessageRecordService;



@Service("messageRecordService")
public class MessageRecordServiceImpl implements MessageRecordService {
	@Autowired
	private MessageRecordDao messageRecordDao;
	
	@Override
	public MessageRecordEntity queryObject(Integer id){
		return messageRecordDao.queryObject(id);
	}
	
	@Override
	public List<MessageRecordEntity> queryList(Map<String, Object> map){
		return messageRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return messageRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(MessageRecordEntity messageRecord){
		messageRecordDao.save(messageRecord);
	}
	
	@Override
	public void update(MessageRecordEntity messageRecord){
		messageRecordDao.update(messageRecord);
	}
	
	@Override
	public void delete(Integer id){
		messageRecordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		messageRecordDao.deleteBatch(ids);
	}

	@Override
	public int messagesRecordCount(Map<String, Object> map) {
		return messageRecordDao.messagesRecordCount(map);
	}
	
}
